<?php
/**
 * 扩展函数库
 * TINPHP - A PHP Framework
 * @author   WU SHAIN <634976171@QQ.com>
 */
class F{
    //dd输出
    public static function dd($var){
        echo "<pre>";
        print_r($var);
        echo "</pre>";
        exit;
    }

    /*加密*/
    public static function encrypt($password){
        return sha1(md5(crypt ( $password , 'wushain')));
    }

    /*获取用户IP*/
    public static function getIp(){
        return $_SERVER["REMOTE_ADDR"];
    }
}